package com.dmgis.hndz.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 地质因子属性分析表
 * @TableName ybab01b
 */
@TableName(value ="ybab01b")
@Data
public class Ybab01b implements Serializable {
    /**
     * ID号
     */
    @TableField(value = "ybab01b010")
    private String ybab01b010;

    /**
     * 因子索引
     */
    @TableField(value = "ybab01b020")
    private Integer ybab01b020;

    /**
     * 字段值
     */
    @TableField(value = "ybab01b030")
    private String ybab01b030;

    /**
     * 对应数值
     */
    @TableField(value = "ybab01b040")
    private Integer ybab01b040;

    /**
     * 模型编号
     */
    @TableField(value = "ybab01b050")
    private String ybab01b050;

    /**
     * 行政编码
     */
    @TableField(value = "ybab01b060")
    private String ybab01b060;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Ybab01b other = (Ybab01b) that;
        return (this.getYbab01b010() == null ? other.getYbab01b010() == null : this.getYbab01b010().equals(other.getYbab01b010()))
            && (this.getYbab01b020() == null ? other.getYbab01b020() == null : this.getYbab01b020().equals(other.getYbab01b020()))
            && (this.getYbab01b030() == null ? other.getYbab01b030() == null : this.getYbab01b030().equals(other.getYbab01b030()))
            && (this.getYbab01b040() == null ? other.getYbab01b040() == null : this.getYbab01b040().equals(other.getYbab01b040()))
            && (this.getYbab01b050() == null ? other.getYbab01b050() == null : this.getYbab01b050().equals(other.getYbab01b050()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getYbab01b010() == null) ? 0 : getYbab01b010().hashCode());
        result = prime * result + ((getYbab01b020() == null) ? 0 : getYbab01b020().hashCode());
        result = prime * result + ((getYbab01b030() == null) ? 0 : getYbab01b030().hashCode());
        result = prime * result + ((getYbab01b040() == null) ? 0 : getYbab01b040().hashCode());
        result = prime * result + ((getYbab01b050() == null) ? 0 : getYbab01b050().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ybab01b010=").append(ybab01b010);
        sb.append(", ybab01b020=").append(ybab01b020);
        sb.append(", ybab01b030=").append(ybab01b030);
        sb.append(", ybab01b040=").append(ybab01b040);
        sb.append(", ybab01b050=").append(ybab01b050);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
